<template>
  <div class="admin-dashboard">
    <h2>管理员控制台</h2>
    <div class="quick-links">
      <el-card class="quick-link" @click="navigateTo('/admin/users')">
        <el-icon><User /></el-icon>
        <div>用户管理</div>
      </el-card>
      <el-card class="quick-link" @click="navigateTo('/admin/tasks')">
        <el-icon><Document /></el-icon>
        <div>任务管理</div>
      </el-card>
      <el-card class="quick-link" @click="navigateTo('/admin/analytics')">
        <el-icon><TrendCharts /></el-icon>
        <div>数据分析管理</div>
      </el-card>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
import { User, Document, TrendCharts } from '@element-plus/icons-vue'
const router = useRouter()
const navigateTo = (path) => {
  router.push(path)
}
</script>

<style scoped>
.admin-dashboard {
  padding: 24px;
}
.quick-links {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}
.quick-link {
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
  padding: 32px 0;
}
.quick-link:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.quick-link .el-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.quick-link div {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 500;
}
</style> 